package chatroom.bean;

import java.util.Date;

/**
 * @Author Gong
 * @Description
 * @dATE 2022/4/25 14:26
 **/
public class Message {
    private String fromName;
    private String toName;
    private String msgContent;
    private Date sendTime;

    public Message(String fromName, String toName, String msgContent, Date sendTime) {
        this.fromName = fromName;
        this.toName = toName;
        this.msgContent = msgContent;
        this.sendTime = sendTime;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        return "Message{" +
                "fromName='" + fromName + '\'' +
                ", toName='" + toName + '\'' +
                ", msgContent='" + msgContent + '\'' +
                ", sendTime=" + sendTime +
                '}';
    }
}
